#include <stdio.h>

int main()
{
	int month[20],a[20]={300,300},sum=0,n,zhengbai,lirun=0;
	
	for(n=1;n<=12;n++)
		scanf("%d",&month[20]);
	
	for(n=1;n<=12;n++)
		{
			if((a[n]-month[n])>100)
				{
					zhengbai=(a[n]-month[n])/100;
					a[n+1]=a[n]-month[n]-zhengbai*100+300;
					lirun++;
				}
			else
				a[n+1]=a[n]-month[n]+300;
				
			printf("%d\n",a[n]);
			//if(a[n]<month[n])
				//{
					//printf("-%d\n",n);
                    
					//return 0;
				//}
		}
		
	a[n+1]=a[n]+300+(lirun*100)*1.2;
	printf("%d",a[n+1]);
    
	return 0;
}